﻿using MoreEvent.Common.Systems;
using MoreEvent.Content.Water;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MoreEvent.Content.Biomes
{
    public class ColdFront : ModBiome
    {
        public override ModWaterStyle WaterStyle => ModContent.GetInstance<IceWaterStyle>();
        public override int Music => MusicID.Ice;
        public override SceneEffectPriority Priority => SceneEffectPriority.BiomeLow;
        public override bool IsBiomeActive(Player player)
        {
            Player localPlayer = Main.LocalPlayer;
            return EventSystem.ActiveEvents.Contains(6) && localPlayer.ZoneOverworldHeight && !localPlayer.ZoneDesert && !localPlayer.ZoneBeach;
        }
    }
}
